
from django.conf.urls import url
from . import views

urlpatterns = [
    # 1.注册页面
    url(r'^register/$', views.RegisterView.as_view()),
    # 2.判断用户名是否重复
    url(r'^usernames/(?P<username>\w+)/count/$', views.UsernameCountView.as_view()),
    # 3.判断手机号是否重复
    url(r'^mobiles/(?P<mobile>1[3-9]\d{9})/count/$', views.MobileCountView.as_view()),
]
